<template>
  <div id="app">
    <div class="menu">
      <ul>
        <li><router-link to="/page1">资源管理</router-link></li>
        <li> <router-link to="/page2">学生管理</router-link></li>
        <li><router-link to="/page1">用户管理</router-link></li>
        <li> <router-link to="/page2">器材管理</router-link></li>
        <li> <router-link to="/page1">购物管理</router-link></li>
      </ul>
    </div>
    <div class="content">
      <router-view />
    </div>
  </div>
  <nav>
  </nav>

</template>
<script>
export default {
  name: 'App',
};
</script>
<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
li {
  list-style: none;
}
a {
  text-decoration: none;
}
#app {
  margin:40px auto;
  display: flex;
}
.menu{
  height: 158px;
  width: 100px;
  border-right:1px solid #ccc;
}
.menu ul{
  padding: 0;
  margin: 0;
}
.menu li {
  width: 80px;
  margin:0 0 10px 0;
  text-align: center;
  border:1px solid #000000;
}
.menu a {
  color: black;
}
.menu a:hover{
  color: red;
}
.content{
  width: 300px;
  height: 158px;
  margin-left:10px;
  border:1px solid #000000;
  flex: 1;
  padding: 10px;
}
</style>
